﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Detail_Comment.ascx.vb" Inherits="NVPortal.Modules.NVNews.Detail_Comment" %>
<%@ Register Assembly="DotNetNuke.WebControls" Namespace="DotNetNuke.UI.WebControls" TagPrefix="DNN" %>
<%@ Register TagPrefix="dnn" Assembly="DotNetNuke" Namespace="DotNetNuke.UI.WebControls"%>
<%@ Register TagPrefix="dnn" TagName="TextEditor" Src="~/controls/TextEditor.ascx"%>
<table style="width: 720px" cellpadding="0" cellspacing="0" border="0" align="center" id="binhluan1" runat="server">
    <tr><td>
    <asp:UpdatePanel ID="UpdatePanelgrd" runat="server">
    <ContentTemplate>
    <asp:DataGrid DataKeyField ='NewsFeedbackId'  id="dgrProducts" 
            runat="server" AutoGenerateColumns="False" 
             Width="100%" SelectedIndex="1">
        <Columns>
            <asp:TemplateColumn HeaderText="&nbsp;&nbsp;&nbsp;NỘI DUNG PHẢN HỒI">
                <ItemTemplate>
                    <table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-bottom: dotted 1px #bebebe; background: #FFFFFF;">
                        <tr>
                            <td style="font-family: Arial; font-size: 11px; width:40%; background:#e3e3e3; text-align: left; padding-left: 10px; height: 24px; border-bottom: 1px solid #d3d3d3;  border-top: solid 1px #ebebeb">
                                Người gửi: <asp:Label  ID="Label1" Font-Names="Arial" Font-Bold="true" Font-Size="11px"  runat="server" Text='<%# Databinder.eval(Container.Dataitem,"FullName") %>'></asp:Label></td>
                            
                            <td style="font-family: Arial; font-size: 11px; width: 40%; background:#e3e3e3; text-align: left; height: 24px; border-bottom: 1px solid #d3d3d3;">
                                Ngày gửi: <asp:Label  Font-Names="Arial" ID="Label2" Font-Bold="true" Font-Size="11px" runat="server" Text='<%# Databinder.eval(Container.Dataitem,"CreateDate").ToString %>'></asp:Label>
                            </td>
                            <td style="font-family: Arial; font-size: 11px; width: 40%; background:#e3e3e3; text-align: left; height: 24px; border-bottom: 1px solid #d3d3d3; text-align: right;">
                                    (<asp:Label  Font-Names="Arial" ID="Labekjhjkhl3" Font-Bold="true" Font-Size="11px" runat="server" Text='<%# Databinder.eval(Container.Dataitem,"ilike") %>'></asp:Label>)
                                <asp:ImageButton id="iLike2" CommandName="iLike" runat="server" ImageUrl="/images/like.png" border="0" />&nbsp;&nbsp;&nbsp;
                                <asp:ImageButton id="uLike2" CommandName="uLike" runat="server" ImageUrl="/images/ulike.png" border="0" />(<asp:Label  Font-Names="Arial" ID="Labeld3" Font-Bold="true" Font-Size="11px" runat="server" Text='<%# Databinder.eval(Container.Dataitem,"ulike") %>'></asp:Label>)
                            </td>
                        </tr>
                        <tr><td colspan="3" style="padding: 5px; border-top: solid 1px #ebebeb">
                            <asp:Label ID="Label16"  runat="server" Font-Names="Arial" Font-Size="13px" ForeColor="#000000"  Text='<%# Server.HtmlDecode(Databinder.eval(Container.Dataitem,"Content")) %>'></asp:Label>
                        </td></tr>
                    </table>
                </ItemTemplate>
                <ItemStyle Width="100%" />
            </asp:TemplateColumn>
        </Columns>
        <FooterStyle Font-Names="Arial" />
                <ItemStyle Font-Names="Arial" />
        <HeaderStyle Font-Names="Arial" Font-Size="11px" Height="25px" BackColor="#b3b3b3" Font-Bold="true" ForeColor="#000000" />
        </asp:DataGrid></ContentTemplate></asp:UpdatePanel>
    </td></tr>
</table>
<a style="font-weight: bold; padding: 15px 5px; line-height: 30px;" onclick="var r=document.getElementById('divBoxComment').style;r.display=(r.display=='none')?'':'none';this.innerHTML=(r.display=='none')?'Viết Bình Luận':'';try {hs.getExpander(this).reflow();} catch(e){}; return false;" href="javascript:;">Viết Bình Luận</a>
<div id="divBoxComment" style="display: none;">
<table class="border_table1" id="binhluan" runat="server" style="border: 1px solid #b3b3b3; margin-top: 10px; font-family: Tahoma; font-size: 12px; background: #f4f4f4; width:720px; padding: 5px;" align="center">
    <tr>
        <td>
            Họ tên: <asp:TextBox ID="txtFullname" CssClass="ASPortal_News_ShowComT" runat="server"></asp:TextBox><br /><br />
            Email:  &nbsp;&nbsp;<asp:TextBox ID="txtEmail" CssClass="ASPortal_News_ShowComT" runat="server"></asp:TextBox>
        </td>
        <td id="trCaptcha" runat="server">
            Xác nhận:<dnn:captchacontrol id="ctlCaptcha" captchawidth="120" captchaheight="40" cssclass="Normal" runat="server" errorstyle-cssclass="NormalRed" />
        </td>
    </tr>
    
    <tr>
        <td colspan="2">
        Nội dung: (<font style="color:red; font-weight: bold">Bài bình luận KHÔNG DẤU sẽ không được duyệt</font>)<br />
        <dnn:TextEditor ID="txtContent" Height="200px" Width="660px" ChooseRender="false" ChooseMode="false" runat="server" />
        </td>
    </tr>
    <tr><td colspan="2"></td></tr>
    <tr>
        <td style="padding-left: 10px">
            <asp:Button ID="ibtSend" ValidationGroup="CommentGroup" runat="server" Text="Gửi bình luận" />
            <asp:Literal ID="Literal1" Runat="server" />
            <asp:Button ID="ibtCancel" runat="server" Text="Nhập lại" />
        </td>
        <td>
            <asp:RequiredFieldValidator ValidationGroup="CommentGroup" EnableClientScript="true" id="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator" ControlToValidate="txtContent" Text="Nội dung bình luận không được bỏ trống!"></asp:RequiredFieldValidator>
            <br />
            <asp:RequiredFieldValidator ValidationGroup="CommentGroup" EnableClientScript="true" id="RequiredFieldValidator2" runat="server" ErrorMessage="RequiredFieldValidator" ControlToValidate="txtFullname" Text="Bạn phải nhập đầy đủ Họ Tên"></asp:RequiredFieldValidator>
            <br />
            <asp:RegularExpressionValidator ValidationGroup="CommentGroup" ID="regexEmailValid" runat="server" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txtEmail" ErrorMessage="Địa chỉ email không đúng!"></asp:RegularExpressionValidator>
        </td>
    </tr>
</table>
</div>